const {defineConfig} = require('@vue/cli-service')
const { VantResolver } = require('unplugin-vue-components/resolvers');
const ComponentsPlugin = require('unplugin-vue-components/webpack');
module.exports = defineConfig({
    transpileDependencies: true,
    // vant按需引入 自动注册
    configureWebpack: {
        plugins: [
            ComponentsPlugin({
                resolvers: [VantResolver()],
            }),
        ],
    },
    // 在css中启用js
    css: {
        loaderOptions: {
            less: {
                lessOptions:{
                    javascriptEnabled: true
                }
            }
        }
    },
})
